package xiongwei.jiang.model.dto.request;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 企业内部开发 / 客户端API / 群机器人 / 群机器人配置说明 / markdown类型
 *
 * @author 天之蓝
 */
@AllArgsConstructor
@Builder
@Data
@NoArgsConstructor
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class MarkdownBotMsg {
    /**
     * 消息类型，此时固定为markdown
     */
    private final String msgtype = "markdown";

    private Markdown markdown;

    @AllArgsConstructor
    @Builder
    @Data
    @NoArgsConstructor
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    public static class Markdown {
        /**
         * markdown内容，最长不超过4096个字节，必须是utf8编码
         */
        private String content;
    }
}
